/**
 * related to selectTimeGridTemplate.ui
 * 
 * @Author : chenglm
 * @Timestamp : 2016-07-09
 */
var root = ui("$");  //$表示当前视图的根UI
var do_Label_interest = ui("do_Label_interest");
//设置数据绑定的映射关系
root.setMapping({
	"do_Label_interest.text":"name",
	"do_Label_interest.tag":"selected",
	"do_Label_interest.bgColor":"bgColor"
});

//订阅每次绑定数据后的事件
root.on("dataRefreshed", function(){
	var _selected= do_Label_interest.tag;
	if (_selected == 1){
		do_Label_interest.border="ff7e00FF,1,4";
		do_Label_interest.fontColor="ff7e00FF";
	}
	else{
		do_Label_interest.border="C4C9D0FF,1,4";
		do_Label_interest.fontColor="949eaaFF";
	}
});
